﻿@model IEnumerable<Modelo.ToqueDeDarsena>

@{
    ViewBag.Title = "Toque De Darsena";
}

<p class="h5Nuevo">
    @Html.ActionLink("Crear nuevo", "Create")
</p>
<table class="tabla">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Empresa)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Localidad)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Interno)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Darsena)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.FechaHoraCarga)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Empresa.Nombre)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Localidad.Nombre)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Interno)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Darsena)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.FechaHoraCarga)
        </td>
        <td>
            <div class="btn-group">
                    <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                        Acciones <span class="caret"></span>
                    </button>
                    <ul class="dropdown-menu" role="menu">
                        <li>@Html.ActionLink("Editar", "Edit", new { id = item.Id })</li>
                        <li class="divider"></li>
                        <li>@Html.ActionLink("Detalles", "Details", new { id = item.Id })</li>
                        <li class="divider"></li>
                        <li>@Html.ActionLink("Eliminar", "Delete", new { id = item.Id })</li>
                    </ul>
                </div>
        </td>
    </tr>
}
</table>
